/**
 * Created by huhai on 17/9/25.
 */
import React, { PropTypes } from 'react';
import  Actions from '../../actions/index'
import {connect} from 'react-redux';
import TemplateManagment from '../../components/templateConfig/templateManagment'




// Todo.propTypes = {
//   onClick: PropTypes.func.isRequired,
//   completed: PropTypes.bool.isRequired,
//   text: PropTypes.string.isRequired
// }

let mapStateToProps = (state)=>(state.templates)
const mapDispatchToProps = Actions
console.log(mapDispatchToProps)
let TemplateConfig = connect(mapStateToProps, mapDispatchToProps)(TemplateManagment)

export default TemplateConfig

